<legend class='hyc-legend'>
    <span>用户列表</span>
</legend>
<div class="row">
    <div class="col-md-2 text-right top7">手机号</div>
    <div class="col-md-2">
        <input type="text" class="form-control hyc-color" ng-model="querySub.phone" placeholder="手机号">
    </div>
    <div class="col-md-2 text-right top7">公司名称</div>
    <div class="col-md-2">
        <input type="text" class="form-control hyc-color" ng-model="querySub.name" placeholder="公司名称">
    </div>
    <div class="col-md-4 text-center">
        <div class="btn btn-default btn-sm btn-warning" ng-click="loadData('query')">查询</div>&nbsp;&nbsp;&nbsp;
        <div class="btn btn-default btn-sm" ng-click="clearQuery()">重置</div>&nbsp;&nbsp;&nbsp;
        <div class="btn btn-default btn-warning btn-sm" ui-sref="subsupplier-edit({subTitle: '新增信息'})" >新增分供方</div>
    </div>
</div>
<table class="table table-bordered" style="margin-top: 20px;">
    <tr>
        <th class="text-center">公司名称</th>
        <th class="text-center">用户名</th>
        <th class="text-center">手机号</th>
        <th class="text-center">邮箱</th>
        <th class="text-center">用户状态</th>
        <th class="text-center">是否启用</th>
        <th class="text-center">操作</th>
    </tr>
    <tr ng-repeat="item in subList track by $index" ng-if="subList.length > 0">
        <td class="text-center">{{item.name}}</td>
        <td class="text-center">{{item.realName}}</td>
        <td class="text-center">{{item.phone}}</td>
        <td class="text-center">{{item.email}}</td>
        <td class="text-center">{{item.userStatus == 10 ? '在线' : '离线'}}</td>
        <td class="text-center">{{item.enable == 'T' ? '是' : '否'}}</td>
        <td class="text-center">
            <a ui-sref="subsupplier-edit({subTitle: '修改信息', id: item.id})">修改</a>&nbsp;
        </td>
    </tr>
    <tr ng-if="subList.length <= 0">
        <td class="text-center" colspan="7">暂无符合条件数据</td>
    </tr>
</table>
<div ng-include="pageIncludeUrl" ng-if="subList.length > 0"></div>